package com.tarena.rpc.demo01.consumer;

import com.tarena.rpc.common.People;

import java.io.*;
import java.net.Socket;

/**
 * 想要调用people方法 wash 但是 consumer端
 * 没有实现,只能通过和provider底层通信实现调用
 */
public class Consumer01 {
    private static People people;
    public static void main(String[] args) throws Exception {
        people=PeopleProxy.getPeople();
        System.out.println(people.getClass().getName());
        String result = people.wash("大皮衣");
        System.out.println(result);
        String result2 = people.eat("西餐");
        System.out.println(result2);
    }
}
